#include "CapsuleDeSurvie.h"


Modele::CapsuleDeSurvie::CapsuleDeSurvie(){
		nbreCharge = 0;
        nbreRebonds = maxNbreRebonds;
		this->artefact=false;
}

void Modele::CapsuleDeSurvie::recharger(){
	nbreCharge = maxNbreCharge;
}

VaisseauType Modele::CapsuleDeSurvie::getType(){
	return CAPSULEDESURVIE;
}

void Modele::CapsuleDeSurvie::recupereCharge(int nbCharge){
	if(nbCharge<= this->maxNbreCharge){
		this->nbreCharge = nbCharge;
	}
	else this->nbreCharge = this->maxNbreCharge;
}
